layui.config({
    base: basePath,
    version: skyeyeVersion
}).extend({
    window: 'js/winui.window'
}).define(['window', 'jquery', 'winui', 'form'], function (exports) {
    winui.renderColor();
    var index = parent.layer.getFrameIndex(window.name);
    var $ = layui.$,
        form = layui.form;
    var objectId = GetUrlParam("objectId");
    var objectKey = GetUrlParam("objectKey");

    // 只使用4个指定的标签页
    tabPageUtil.init({
        id: 'tab',
        prefixData: [{
            title: '租户详情',
            pageUrl: systemCommonUtil.getUrl('FP2025070100001&id=' + objectId, null)
        }],
        suffixData: [{
            title: '已购买应用',
            pageUrl: '../../tpl/tenant/purchasedService.html?tenantId=' + objectId
        }, {
            title: '用户信息',
            pageUrl: '../../tpl/tenant/userInformation.html?tenantId=' + objectId
        }, {
            title: '付费统计',
            pageUrl: '../../tpl/tenant/paymentStats.html?tenantId=' + objectId
        }],
        element: layui.element,
        object: {
            objectId: objectId,
            objectKey: objectKey,
        }
    });

    form.render();
});
